import request from '@/utils/request'

// 查询列表
export function listSend(query) {
  return request({
    url: '/yanjing/send/list',
    method: 'get',
    params: query
  })
}

// 查询列表
export function queryPageByParam(query) {
  return request({
    url: '/yanjing/send/queryPageByParam',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getSend(sendId) {
  return request({
    url: '/yanjing/send/' + sendId,
    method: 'get'
  })
}

// 查询详细
export function view(sendId) {
  return request({
    url: '/yanjing/send/view/' + sendId,
    method: 'get'
  })
}


// 新增
export function addSend(data) {
  return request({
    url: '/yanjing/send',
    method: 'post',
    data: data
  })
}

// 修改
export function updateSend(data) {
  return request({
    url: '/yanjing/send',
    method: 'put',
    data: data
  })
}

// 删除
export function delSend(sendId) {
  return request({
    url: '/yanjing/send/' + sendId,
    method: 'delete'
  })
}
